package cn.shujuhai.workflow.service;

import cn.shujuhai.common.pluging.data.ResultVo;
import cn.shujuhai.workflow.domain.Form;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author ZhangDeZhong
 * @description 针对表【form】的数据库操作Service
 * @createDate 2025-03-11 09:40:20
 */
public interface FormService extends IService<Form> {

    ResultVo<?> getFormList(String formName, Integer formType, int pageNum, int pageSize);

    ResultVo<?> addForm(Form form);

    ResultVo<?> updateForm(Form form);

    ResultVo<?> deleteForm(Long formId);

    ResultVo<?> enableForm(Long formId);

    int isFormFilled(Long formId);

    ResultVo<?> getFormById(Long formId);

    String uploadImg(MultipartFile file);

    ResultVo<?> saveFormStyle(Long formId, String background);

    ResultVo<?> getFieldDataByFormId(Long formId);
}
